

#ifndef MULTASK_H
#define MULTASK_H

	#include "memory.h"
	#include "task_que.h"
	#include "bootpack.h"
	
	
	
	
	TASK* task_init (MEMORY_MANAGEMENT *memman );
	TASK* task_alloc (void ) ;
	void task_bindcq(TASK * task ,CQUEUE * cq) ;
	void task_run (TASK * task ,int level ,int priority ) ;
	void task_switch (void ) ;
	void task_switchsub ();
	void task_sleep (TASK * task ) ;

	TASK * task_now () ;
	void task_add (TASK * task) ;
	void task_remove (TASK * task ) ;
	void task_idle () ;

#endif  

	 